package com.itheima.dao;

import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;

public interface OrderMapper {

    void add(Order order);

    Order findByOrder(Order queryParam);

    @Select("select * from t_order o,t_member m,t_setmeal s where o.setmeal_id=s.id and o.member_id=m.id and o.id=#{id}")
    Order findById(String id);
}
